package cn.stylefeng.guns.modular.basic.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.BasicMaterial;
import cn.stylefeng.guns.modular.basic.model.params.BasicMaterialParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicMaterialResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 物料大类表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2019-09-17
 */
public interface BasicMaterialService extends IService<BasicMaterial> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2019-09-17
     */
    void add(BasicMaterialParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2019-09-17
     */
    void delete(BasicMaterialParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2019-09-17
     */
    void update(BasicMaterialParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2019-09-17
     */
    BasicMaterialResult findBySpec(BasicMaterialParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2019-09-17
     */
    List<BasicMaterialResult> findListBySpec(BasicMaterialParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2019-09-17
     */
     LayuiPageInfo findPageBySpec(BasicMaterialParam param,String condition,Long operateId);

}
